There have been
instances in my career where they were interdependent and I had to release them
both at the same time. The only solution was to release code in the middle
of the night when we had the lowest traffic and hope that for the
five-minutes we were down with one while the
other one was updating that only a few users
run into the issue. Sometimes it's the
only thing you can do. Hi, my name is Moxxy Herrera. I use they, them pronouns. I'm a software engineer at
Meta in the Memo Park office. I work on donations products. Making sure that we
are tracking who is donating to which
fundraisers to which charities. This is very important that
we don't get this wrong. We want to make sure that we're storing the right data and getting the right data to
display to the right user. What we mean by
that is we want to ensure the data validity. We want to ensure that we
are making sure that we are only getting the data that the specific
user should see, that we are saving
the right data. These are very important
concepts when designing a database that you
want it to be reliable. You want to make sure the
relationships make sense. We need to make sure
that we're not accessing any data that a specific
user shouldn't see. The integrity and quality of a database and its
design is one of the first and primary steps to ensuring that our
data is protected. Our data is being
stored in a safe way and our users can trust that their data is not
being mishandled. This requires us to have a
well designed database that is thoughtfully thinking about
the different relationships that data can have
with each other, as well as having some plan
for changes in the future. The process I
generally follow when designing a database is to first come up with
a core data model that I need for our
product to work. I start with that because
for me it's the easiest to conceptualize how are
we going to access the data we need from
a product perspective. Then after that initial
data model is built, I start drilling down
into specific privacy and validation
details that we need. Should just certain
data be encrypted? Should certain data be only accessible via
certain servers? These are all
different questions that we're going to have to ask. Then depending on
the type of data you store could be
credit card information, could be user information. There's going to be even more checks that you're
going to have to integrate into your database
and database design in order to accommodate that. The core considerations for well designed
database to Meta are to first and foremost respect user privacy
and user safety. Users should know
where their data is and have access to it. That they should note that
it's not being used in any products that they
are not comfortable with. The other thing we need
to ensure scalability. It does not matter if you have a really well thought
out data model. If it cannot scale up
with the billions of users that Meta
products see every day. I think one of the most common challenges when
you're working with a database isn't the initial
time he built a database. Because you have this
concept in your model of a relationship and then something comes along
and changes it. The first thing to do
is really be thoughtful about how you can change your
database as in the future. How it will scale not only with volume of users but
with types of products. The other thing that is very
important to think about is how to modify an
existing database. This is going to be a
very challenging thing and the majority of the work around databases
is a lot of this stuff. We have this old data model, it doesn't suit our needs today. We're going to overcome this. That requires just a lot of thinking and planning on your part how to
migrate the data. These are big tasks that
take time to figure out, but that is some of the
ways that you've become better at managing
base and building better data models
in the first place. As a database engineer, you're going to have
access to a lot of data. You really need keep in
mind how integral that is to user trust or the trust of anyone trusting
you with this data, even if you think
it's trivial data. There's a lot of
trust being put in you to make sure that
you're being responsible. I really want you to walk away knowing that database design, database engineering is critical to the overall
product experience and integral to user trust in the product that
you're building.